﻿/**
  \file main.c

  \author G. Icking-Konert

  \brief implementation of main routine

  this is the main file containing browsing input parameters, 
  calling the import and export routines

  \note program not yet fully tested!
*/

// include files
// #include <stdio.h>
// #include <stdlib.h>
// #include <string.h>
// #include <stdarg.h>
// #include <stdint.h>
// #include <errno.h>
// #include "hexfile.h"

#define _GLOBAL_
  #include "global.h"
#undef _GLOBAL_


/**
  \fn int main(int argc, char *argv[])

  \param argc      number of commandline arguments + 1
  \param argv      string array containing commandline arguments (argv[0] contains name of executable)

  \return dummy return code (not used)

  Main routine for import and output
*/
// int main(int argc, char ** argv) {
//   MemoryImage_s img;
//   MemoryEntry_s* p;
//   uint32_t i;

//   MemoryImage_init(&img);
//   // import_file_s19(L"x:\\2.s19",&img);
//   import_file_bin(L"..\\..\\test\\3.bin1",0,&img);
//   p = img.firstMemoryEntries;
//   while(p!=NULL)
//   {
//     printf("\n");
//     printf("addr: 0x%08llX:\n",p->addrStart);
//     for(i=0;i<p->capacityUsed;i++)
//     {
//       printf("%02X ",p->data[i]);
//     }
//     p = p->next;
//   }

//   MemoryImage_free(&img);
//   return 0;
// } // main


// end of file
